﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using MotorcycleStore.DomainModel;

namespace MotorcycleStoreData.EF
{
	public class MotorcycleStoreContext : ObjectContext
	{
		public MotorcycleStoreContext(string connectionString)
			: base(connectionString)
		{
			Manufacturers = CreateObjectSet<Manufacturer>();
			Motorcycles = CreateObjectSet<Motorcycle>();
			Categories = CreateObjectSet<Category>();
		}

		public ObjectSet<Manufacturer> Manufacturers { get; private set; }
		public ObjectSet<Motorcycle> Motorcycles { get; private set; }
		public ObjectSet<Category> Categories { get; private set; }
	}
}
